package com.example.entity.mqtt;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName(value ="mqunit")
@Api("硬件设备数据表")
public class Mqunit implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @TableField(value = "name")
    @ApiModelProperty("设备编码")
    private String name;

    @TableField(value = "status")
    @ApiModelProperty("说明状态")
    private String status;

    @TableField(value = "count")
    @ApiModelProperty("计数（即时产量、当前产量（累计），若无则传零值）")
    private Integer count;

    @TableField(value = "length")
    @ApiModelProperty("米数")
    private Double length;

    @TableField(value = "reset")
    @ApiModelProperty("设备名")
    private String reset;

    @TableField(value = "ip")
    @ApiModelProperty("设备IP地址")
    private String ip;

    @TableField(value = "port")
    @ApiModelProperty("设备IP地址端口")
    private Integer port;

    @TableField(value = "cunqi")
    @ApiModelProperty("寄存器")
    private Integer cunqi;

    @TableField(value = "crateDateTime")
    @ApiModelProperty("创建时间")
    private String crateDateTime;
}
